package com.morehair.controller.wx;

import com.morehair.bean.vo.admin.BaseRespVo;
import com.morehair.bean.vo.wx.HomeIndexVo;
import com.morehair.service.wx.WxHomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 * Date: 2021/6/8
 * Time: 21:42
 * author: zhang wei
 */
@RestController
@RequestMapping("wx/home")
public class WxHomeController {

    @Autowired
    WxHomeService wxHomeService;

    @RequestMapping("index")
    public BaseRespVo indexOfHome() {
        HomeIndexVo homeIndexVo = wxHomeService.getHomeIndex();
        return BaseRespVo.ok(homeIndexVo);
    }

}
